home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / gas / config / tc-arm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-04  |  2.8 KB  |  113 lines

  1. /* This file is tc-arm.h
  2.    Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
  3.     Modified by David Taylor (dtaylor@armltd.co.uk)
  4.  
  5.    Copyright (C) 1994, 1995 Free Software Foundation, Inc.
  6.  
  7.    This file is part of GAS, the GNU Assembler.
  8.  
  9.    GAS is free software; you can redistribute it and/or modify
  10.    it under the terms of the GNU General Public License as published by
  11.    the Free Software Foundation; either version 2, or (at your option)
  12.    any later version.
  13.  
  14.    GAS is distributed in the hope that it will be useful,
  15.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.    GNU General Public License for more details.
  18.  
  19.    You should have received a copy of the GNU General Public License
  20.    along with GAS; see the file COPYING.  If not, write to
  21.    the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  22.  
  23. #define TC_ARM 1
  24.  
  25. #define COFF_MAGIC ARMMAGIC
  26. #define TARGET_ARCH bfd_arch_arm
  27.  
  28. #define AOUT_MACHTYPE 0
  29.  
  30. #define DIFF_EXPR_OK
  31.  
  32. #define LITTLE_ENDIAN 1234
  33. #define BIG_ENDIAN 4321
  34.  
  35. /* If neither TARGET_BYTES_BIG_ENDIAN nor TARGET_BYTES_LITTLE_ENDIAN
  36.    is specified, default to little endian.  */
  37. #ifndef TARGET_BYTES_BIG_ENDIAN
  38. #ifndef TARGET_BYTES_LITTLE_ENDIAN
  39. #define TARGET_BYTES_LITTLE_ENDIAN
  40. #endif
  41. #endif
  42.  
  43. #ifdef OBJ_AOUT
  44. #ifdef TE_RISCIX
  45. #define TARGET_FORMAT "a.out-riscix"
  46. #else
  47. #ifdef TARGET_BYTES_BIG_ENDIAN
  48. #define TARGET_FORMAT "a.out-arm-big"
  49. #else
  50. #define TARGET_FORMAT "a.out-arm-little"
  51. #endif
  52. #endif
  53. #endif
  54.  
  55. #ifdef OBJ_AIF
  56. #define TARGET_FORMAT "aif"
  57. #endif
  58.  
  59. #ifdef OBJ_COFF
  60. #define ARM_BI_ENDIAN
  61. #ifdef TE_PE
  62. #define TC_FORCE_RELOCATION(x) ((x)->fx_r_type==BFD_RELOC_RVA)
  63. #define TARGET_FORMAT (target_big_endian ? "pe-arm-big" : "pe-arm-little")
  64. #else
  65. #define TARGET_FORMAT (target_big_endian ? "coff-arm-big" : "coff-arm-little")
  66. /* Tell tc-arm.c to support runtime endian selection.  */
  67. #endif
  68. #endif
  69.  
  70. #define md_convert_frag(b,s,f)        {as_fatal ("arm convert_frag\n");}
  71.  
  72. #define md_after_pass_hook() arm_after_pass_hook ()
  73. #define md_start_line_hook() arm_start_line_hook ()
  74. #define tc_frob_label(S) arm_frob_label (S) 
  75.  
  76. #define obj_fix_adjustable(fixP) 0
  77.  
  78. #if 0    /* It isn't as simple as this */
  79. #define tc_frob_symbol(sym,punt)    \
  80. {    if (S_IS_LOCAL (sym))        \
  81.       {                \
  82.         punt = 1;            \
  83.         sym->sy_used_in_reloc = 0;    \
  84.       }}
  85. #endif 
  86.  
  87. #if 0
  88. #define tc_crawl_symbol_chain(a)    {;}    /* not used */
  89. #define tc_headers_hook(a)        {;}    /* not used */
  90. #endif
  91.  
  92. #define tc_aout_pre_write_hook(x)    {;}    /* not used */
  93.  
  94. #define LISTING_HEADER "ARM GAS "
  95.  
  96. #define OPTIONAL_REGISTER_PREFIX '%'
  97.  
  98. #define md_operand(x)
  99.  
  100. #define TC_HANDLES_FX_DONE
  101.  
  102. #define MD_APPLY_FIX3
  103.  
  104. #define LOCAL_LABELS_FB  1
  105.  
  106. /* Use defaults for OBJ_AOUT.  */
  107. #ifndef OBJ_AOUT
  108. #define LOCAL_LABEL(name)    ((name)[0] == '.' && (name)[1] == 'L')
  109. #define FAKE_LABEL_NAME        ".L0\001"
  110. #endif
  111.  
  112. /* end of tc-arm.h */
  113.